<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/statics/css/blanceDrop.css">
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <script type="text/javascript" src="${ctx}/appjs/acct/acctWithdrawApplyByOperator.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>分销商列表</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>提现申请记录</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back();"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input type="hidden" name="tenantOperatorCode" id="tenantOperatorCode"
                           value="${tenantOperatorCode}">
                    <input id="outTradeNo" name="outTradeNo" type="text"
                           class="form-control shortInput input-distance"
                           placeholder="交易订单号">
                    <select  class="form-control shortInput input-distance" id="elecStationId" name="elecStationId">
                        <option value="">站点名称</option>
                        <c:forEach items="${elecStationResultList}" var="elecStation">
                            <option value="${elecStation.elecStationId}">${elecStation.stationName}</option>
                        </c:forEach>
                    </select>
                    <input id="startTime" name="startTime" type="text" class="form-control shortInput input-distance"
                           placeholder="开始时间" readonly>
                    <input id="endTime" name="endTime" type="text" class="form-control shortInput input-distance"
                           placeholder="结束时间" readonly>
                    <button class="btn btn-success input-distance" style="margin-top: 0" onclick="acctWithdrawApply.reLoad()">查询</button>

                    <button class="btn btn-success input-distance exportBtn" style="margin-top: 0" onclick="acctWithdrawApply.exportAcctWithdrawApply()">导出</button>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
                <div class="invoiceModal" id="invoiceModal" style="display: none">
                    <div class="contentBlock" style="overflow: auto">
                        <div style="height: 500px;width: auto;overflow: auto" class="hide imgWrap">
                            <img src="" alt="" style="width: 100% !important;">
                        </div>
                        <iframe id="myFrameId" name="myFrameName"
                                src=""
                                scrolling="no" frameborder="0"></iframe>
                        <ul>

                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">

    // //日期范围限制
    var start = {
        elem: '#startTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        istoday: false
    };
    var end = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        istoday: false
    };
    laydate(start);
    laydate(end);
    laydate.skin('molv');//皮肤

    acctWithdrawApply.init();

    $(".invoiceModal").on("click", "ul li", function () {
        var url = $(this).attr("href");
        var name = $(this).find(".fileLink").find("div").html();
        if (url.indexOf("pdf") > 0) {
            $("#myFrameId").attr("src", url);
            $(".imgWrap").addClass("hide");
            $("#myFrameId").removeClass("hide");
            $(".layui-layer-title").html("发票预览（" + name + "）");
        } else {
            $(".imgWrap").removeClass("hide");
            $(".imgWrap img").attr("src", url);
            $("#myFrameId").addClass("hide");
            $(".layui-layer-title").html("发票预览（" + name + "）");
        }
    });
</script>
</body>
</html>
